// Query.java

// Start: $Id: remote.vm 7202 2005-08-10 16:24:21Z el-vadimo $
package query;

import javax.ejb.EJBLocalObject;

import offer.Offer;

import descriptor.QueryDescriptor;

import student.Student;
import academicSup.AcademicSup;

/**
 * Query interface
 * 
 * @author Mamadou TOURE
 * 
 * The Query interface defines all the business method that a client can invoke remotely 
 * on the object (QueryBean).
 * 
 * Note : 	-It extends the EJBLocalObject interface.
 */
public interface Query extends EJBLocalObject 
{	
	public static int ACCEPTED = 1;
	public static int REJECTED = -1;
	public static int WAIT = 0;
	
	// simple attributes
	public int getId();
	public void setId(int id);
	
	public String getMessage();
	public void setMessage(String msg);
	
	public int getStatus();
	public void setStatus(int status);
	
	//bean attributes
	//relation 1-1
	public Student getStudent();
	public void setStudent(Student student);
	
	public AcademicSup getAcademicSup();
	public void setAcademicSup(AcademicSup academicSup);
	
	public Offer getOffer();
	public void setOffer(Offer offer);

	public QueryDescriptor getDescriptor();
}
